﻿using System;

class Program
{
    static void Main()
    {
        int[] arr =
        {
            4,5,2,4,5,6,3,4,5,2,3,2,1,0,4,4
        };
        int n = int.Parse(Console.ReadLine());
        int count = Count(arr, n);
        Console.WriteLine(count);
    }

    private static int Count(int[] arr, int n)
    {
        int count = 0;
        foreach (var item in arr)
        {
            if (n == item)
            {
                count++;
            }
        }
        return count;
    }
}